package com.dd.cloud.open.enums;

/**
 * @author zk
 */
public enum ResponseEnum {
    SUCCESS(2000, "成功"),
    ACCEPT_MULTIPLE_REQUEST_METHOD(3000, "接口接受多个请求方式"),
    ONLY_ACCEPT_GET(3001, "接口只接受GET请求"),
    ONLY_ACCEPT_POST(3002, "接口只接受POST请求"),
    REQUEST_ERROR(4000, "请求错误"),
    POST_BODY_RESOLVE_ERROR(4000, "POST请求中Body数据解析失败"),
    DISEASE_AND_DEPARTMENT_NOT_NULL(4000, "科室id和疾病id参数不能同时为空"),
    DISEASE_NOT_OPEN(4000, "疾病未开放"),
    SIGN_INVALID(4000, "签名失效"),
    LACK_PARAMETER(4001, "参数缺失"),
    APPLY_INFO_ERROR(4002, "开发者信息错误"),
    SYSTEM_ERROR(5000, "系统错误");

    private int code;
    private String body;

    ResponseEnum(int code, String body) {
        this.code = code;
        this.body = body;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
